var rcvRecordController = require('../../../ProduceWork/server/controllers/RcvRecord.server.controller');

//查询入库记录ByBarcodeMaster
exports.queryRcvRecordsByBarcodeMaster = function(req, res) {
    var parameter = req.body.Parameter,
        barcodeMaster = parameter.barcodeMaster;
    rcvRecordController.queryRcvRecordsByBarcodeMaster(barcodeMaster, function(err, result) {
        if (err) {
            res.json({
                Data: null,
                Error: err

            });
        } else {
            res.json({
                Data: result,
                Error: null
            });
        }
    });
};
